package cn.stard.handler;

import cn.stard.domian.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

public class UserFallBackHandle {
    public static User getUserByIdBlockHandler(@PathVariable  Long id, BlockException  ex){
        System.out.println("3");
        return new User().setUsername("Handle预期规则异常,限流2222").setId(3l);
    }
}
